Skip to content

Conversation

@rensieeee
Copy link
Contributor

The unit test for the created LoginController does an assertion on the http status code after redirecting. Since it's not required to have a root route, this assertion could fail if there is no root configured.

The functionality works as intended if the redirect works, there's no real benefit to further check the status of the page its redirected to. This functionality should be tested in the unit test of the root controller.

@rensieeee
Copy link
Contributor Author

This solution was discussed in symfony/symfony#62245

@javiereguiluz
Copy link
Member

Thank you Rens.

@javiereguiluz javiereguiluz merged commit edad857 into symfony:1.x Nov 28, 2025
4 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants